updating oE has
has
include map.e namespace map public function has(map the_map_p, object key)
checks whether map has a given key.
Parameters:
- the_map_p : the map to inspect
- the_key_p : an object to be looked up
Returns:
An integer, 0 if not present, 1 if present.
Example 1:
map the_map_p the_map_p = new() put(the_map_p, "name", "John") ? has(the_map_p, "name") -- 1 ? has(the_map_p, "age") -- 0
See Also:
Not Categorized, Please Help
|